package com.example.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Writings implements Serializable {
    private String body;  //文章内容
    @TableField("image")
    private String img; //文章图片
    private String title; //文章标题
    private long visit; //访问量
    private long likes; //点赞数
    @TableId(type = IdType.AUTO)
    private String wid; //文章编号
    private long uid; //作者编号
    private String date; //编写时间
    private String type; //文章标签类型
    private Integer status; //文章状态 / 其他
    private Integer encrypt;//文章是否加密
    private String password; //文章加密密码
}


